package com.wx.mapper;


import com.wx.common.MyMapper;
import com.wx.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>Title:	  koala-umc <br/> </p>
 * <p>Description TODO <br/> </p>
 * <p>Company:    医百科技有限公司  <br/> </p>
 *
 * @Author <a href="xinglinglove1029@163.com"/>杨文生</a>  <br/>
 * @Date 2017 /5/15 13:50
 */
@Mapper
@Component
public interface SysUserMapper extends MyMapper<SysUser> {

    /**
     * Load user by username user.
     *
     * @param userName the user name
     * @return the user
     */
    SysUser loadUserByUsername(String userName);

    /**
     * <p>Title:      分页查询用户信息. </p>
     * <p>Description </p>
     *
     * @param user the user
     * @return page info
     * @Author <a href="xinglinglove1029@163.com"/>杨文生</a>
     * @since 2018 /2/9 12:09
     */
    List<SysUser> queryListPage(SysUser user);

    /**
     * <p>Title:     selectAllExcludeSupper. </p>
     * <p>Description 查询全部用户排除超级管理员</p>
     *
     * @return list list
     * @Author <a href="xinglinglove1029@163.com"/>杨文生</a>
     * @since 2018 /4/28 15:01
     */
    List<SysUser> selectAllExcludeSupper(Byte excludeSupper);
}
